package com.yang.jxj.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yang
 * @since 2024-06-20
 */
@ApiModel(value = "User对象", description = "")
@TableName(value = "user")
public class User implements Serializable {



    @TableId("user_id")
    private Integer userId;

    private String userName;

    private String passwd;

    private Integer user_role;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public Integer getUserRole() {
        return user_role;
    }

    public void setUserRole(Integer userRole) {
        this.user_role = userRole;
    }

    @Override
    public String toString() {
        return "User{" +
            "userId = " + userId +
            ", userName = " + userName +
            ", passwd = " + passwd +
            ", userRole = " + user_role +
        "}";
    }
}
